<?php
/**
 * Created by PhpStorm.
 * User: XYX
 * Date: 2017/8/30
 * Time: 19:18
 */

namespace App\Api\Transformers;


use App\Twitterpic;
use League\Fractal\TransformerAbstract;

class PicforTwitterTransformer extends TransformerAbstract
{
    public function transform(Twitterpic $item)
    {
        return
            [
                'id'=>$item['id'],
                'pic'=>$item['pic']
            ];
    }
}